UkrSolution\BarcodeScanner\API\actions\CartActions D

Total Complexity 249
Dependencies 9
Dependents 2
Total lines 952
Lines of code 718
Logical lines of code 445
Comment lines 0
Methods 23
Properties 5

Methods 23

Method Rating Maintainability Complexity Lines of code
orderCreate()
D
21
58 154
findProductInCart()
C
45 26 37
updateQuantity()
C
37 24 64
addItemToCart()
B
40 24 55
addItem()
A
40 15 52
itemSetPrice()
A
49 16 27
restoreCart()
A
48 12 29
wcSession()
A
46 11 35
cartRecalculate()
A
39 8 63
updateAttributes()
A
49 8 28
getWcCheckoutErrors()
A
56 8 18
setOrderTotal()
A
57 8 17
changeQuantityInCart()
S
54 7 20
formatPriceForUpdate()
S
56 5 19
getWcErrors()
S
61 5 12
getShippingMethod()
S
62 4 11
removeItem()
S
56 2 18
getCartDetails()
S
54 1 21
conditionally_send_wc_email()
S
66 2 9
getCartItems()
S
63 2 10
getStatuses()
S
69 1 7
cartClear()
S
66 1 9
initFieldPrice()
S
79 1 3